import request from '@/utils/request'

// 查询库存移动列表
export function listInventoryMovement(query) {
  return request({
    url: '/wms/inventoryMovement/list',
    method: 'get',
    params: query
  })
}

// 查询库存移动详细
export function getInventoryMovement(id) {
  return request({
    url: '/wms/inventoryMovement/' + id,
    method: 'get'
  })
}

// 新增库存移动
export function addInventoryMovement(data) {
  return request({
    url: '/wms/inventoryMovement',
    method: 'post',
    data: data
  })
}

// 修改库存移动
export function updateInventoryMovement(data) {
  return request({
    url: '/wms/inventoryMovement',
    method: 'put',
    data: data
  })
}

// 删除库存移动
export function delInventoryMovement(id) {
  return request({
    url: '/wms/inventoryMovement/' + id,
    method: 'delete'
  })
}
